<!DOCTYPE html>
<html lang="en">
<head>
		<title>Snippets &mdash; Articles tagged mail</title>
		<meta charset="utf-8" />
		<link rel="profile" href="http://gmpg.org/xfn/11" />
		<link rel="stylesheet" type="text/css" href="https://corteousquestions.club/theme/css/style.css" />
		<link rel='stylesheet' id='oswald-css'  href='http://fonts.googleapis.com/css?family=Oswald&#038;ver=3.3.2' type='text/css' media='all' />
		<style type="text/css">
			body.custom-background { background-color: #f5f5f5; }
		</style>
		<link rel="alternate" type="application/atom+xml"
			title="Snippets — Flux Atom"
			href="https://corteousquestions.club/" /> 
		<!--[if lte IE 8]><script src="https://corteousquestions.club/theme/js/html5shiv.js"></script><![endif]-->
</head>

<body class="home blog custom-background " >
	<div id="container">
		<div id="header">
				<h1 id="site-title"><a href="https://corteousquestions.club">Snippets</a></h1>
<h2 id="site-description">All that I will forget is here</h2>		</div><!-- /#banner -->
		
		<div id="menu">
			<div class="menu-navigation-container">
				<ul id="menu-navigation" class="menu">
						<li class="menu-item menu-item-type-post_type menu-item-object-page"><a href="https://corteousquestions.club/category/misc.html">misc</a></li>

				</ul>
			</div> <!--/#menu-navigation-container-->
		</div><!-- /#menu -->
		
		<div class="page-title">
<div class="page-title">
	<h2>Tagged with <span>mail</span> &hellip;</h2>
</div>
		</div>
	
		<div id="contents">
<div class="post type-post status-publish format-standard hentry category-general" id="post">
	<div class="entry-meta">
		<div class="date"><a href="https://corteousquestions.club/external-ssl.html">Mon 19 April 2021</a></div>
		<span class="byline">By <a href="https://corteousquestions.club/author/mclds.html">mclds</a></span>
			<span class="cat-links"><a href="https://corteousquestions.club/category/misc.html" title="View all posts in misc" rel="category tag">misc</a></span>
	</div> <!-- /#entry-meta -->
	<div class="main">
		<h2 class="entry-title">
			<a href="https://corteousquestions.club/external-ssl.html" title="Permalink to Using openssl to connect externally" rel="bookmark">Using openssl to connect externally</a>
		</h2>
		<div class="entry-content">
			<p>This subject came to me, when I needed to connect with a mail<br>
  server that had ssl encryptation. To link to it you do the<br>
  following:  </p>
<hr>
<p>openssl s_client --connect <server name:port>  </p>
<hr>
<p>After that it will probably be needed login information, which<br>
  can be inputted in the following manner:  </p>
<hr>
<p>a1 login <username> <password>  </p>
<hr>
<p>Notice the 'a1' tag. It can be anything you like, but it must<br>
  be consistent. For instances, after 'a1' must come 'a2', and
  so on.  </p>
<hr>
<p>a2 list '' '*'  </p>
<hr>
<p>Shows a list of your mailboxes.  </p>
<hr>
<p>a3 examine <mailbox name>  </p>
<hr>
<p>Gives you metadata about the mailbox.  </p>
<hr>
<p>a4 select <mailbox name>  </p>
<hr>
<p>Selects a particular mailbox  </p>
<hr>
<p>a5 fetch 1 body[]  </p>
<hr>
<p>Fetches the first email in the mailbox.  </p>
<hr>
<p>For more information see:<br>
  https://bit.ly/38HrK76<br>
  https://tools.ietf.org/html/rfc3501#page-27  </p>
		</div> <!--/#entry-content-->
    		<span class="tag-links"><strong>Tagged</strong>
 <a href="https://corteousquestions.club/tag/mail.html" rel="tag">mail</a>,  <a href="https://corteousquestions.club/tag/openssl.html" rel="tag">openssl</a>,  <a href="https://corteousquestions.club/tag/ssl.html" rel="tag">ssl</a>    		</span>
	</div> <!--/#main-->
</div>  <!--/#post--><div class="post type-post status-publish format-standard hentry category-general" id="post">
	<div class="entry-meta">
		<div class="date"><a href="https://corteousquestions.club/mail-cli.html">Sat 17 April 2021</a></div>
		<span class="byline">By <a href="https://corteousquestions.club/author/mclds.html">mclds</a></span>
			<span class="cat-links"><a href="https://corteousquestions.club/category/misc.html" title="View all posts in misc" rel="category tag">misc</a></span>
	</div> <!-- /#entry-meta -->
	<div class="main">
		<h2 class="entry-title">
			<a href="https://corteousquestions.club/mail-cli.html" title="Permalink to Send email through cli" rel="bookmark">Send email through cli</a>
		</h2>
		<div class="entry-content">
			<p>To send an email through the cli app 'mail',
 this is what you have to do:</p>
<hr>
<p>mail destination@email.com
 Subject: Hello World
 Email Body.
 .
 <ctl+d></p>
<hr>
<p>To end the mail it is needed to put a dot in
 a clean line, and then press Control-D, to
 exit.
 To send an attachment:</p>
<hr>
<p>mail -A /opt/backup.sql -s Backup File
 user@example.com &lt; /dev/null</p>
<hr>
		</div> <!--/#entry-content-->
    		<span class="tag-links"><strong>Tagged</strong>
 <a href="https://corteousquestions.club/tag/cli.html" rel="tag">cli</a>,  <a href="https://corteousquestions.club/tag/email.html" rel="tag">email</a>,  <a href="https://corteousquestions.club/tag/mail.html" rel="tag">mail</a>    		</span>
	</div> <!--/#main-->
</div>  <!--/#post-->		</div>
		
		<div id="footer">
			<p>Powered by <a href="http://getpelican.com">Pelican</a>, theme by <a href="http://bunnyman.info">tBunnyMan</a>.</p>
		</div><!-- /#footer -->
	</div><!-- /#container -->
	<div style="display:none"></div>
</body>
</html>